package com.example.demo.service;

import com.example.demo.dao.AnswerSheetEntityMapper;
import com.example.demo.dao.entity.AnswerSheetEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AnswerSheetService {
    @Autowired
    private AnswerSheetEntityMapper answerSheetEntityMapper;

    public List<AnswerSheetEntity> search(AnswerSheetEntity answerSheetEntity) {
        List<AnswerSheetEntity> result = answerSheetEntityMapper.search(answerSheetEntity);
        return result;
    }

    public List<AnswerSheetEntity> searchByRespondentName(AnswerSheetEntity answerSheetEntity) {
        List<AnswerSheetEntity> result = answerSheetEntityMapper.searchByRespondentName(answerSheetEntity);
        return result;
    }

    public List<AnswerSheetEntity> searchByQuestionnaireName(AnswerSheetEntity answerSheetEntity) {
        List<AnswerSheetEntity> result = answerSheetEntityMapper.searchByQuestionnaireName(answerSheetEntity);
        return result;
    }
}
